import  {xsEntity} from './commentity';
import { Column ,Entity,OneToMany} from 'typeorm';
import { NotesEntity,  } from './NotesEntity';

/**
 * 描述
 */
@Entity()
export class    UserEntity extends xsEntity {
  @Column({ comment: '描述' })
  name: string;

  @Column({ comment: '头像', nullable: true })
  avatar: string;
  @Column({ comment: '手机', nullable: true, length: 20 })
  phone: string;

  @OneToMany( ()=>NotesEntity , PhotosEntity=>PhotosEntity.pid)
  note:NotesEntity
//  每个人都有一个 相册属性   => [  1 , 2 , 3 , 4 , 5 ]

}
